<?php
require('php/controler/CtrlMain.php');
Main::runService('Connection');
?>


<?php if(Security::isConnected()): ?>


<form method="post">
	<button type="submit" name="action" value="logout">
		<?= Texte::toHtml('Déconnection') ?>
	</button>
</form>


<?php else: ?>



<form method="post">
	<label>
		Indentifiant : <input name="nom"/>
	</label>
	<label>
		Mot de passe : <input name="pwd" type="password"/>
	</label>
	<button type="submit" name="action" value="login">Valider</button>
</form>



<?php endif; ?>

